package com.ssh.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.HibernateTemplate;
import org.springframework.stereotype.Repository;

import com.ssh.dao.CategoryDao;
import com.ssh.entity.Category;

@Repository
public class CategoryDaoImpl implements CategoryDao {

	@Autowired
	private HibernateTemplate ht;
	
	@SuppressWarnings("unchecked")
	@Override
	public List<Category> findAll() {
		List<Category> list = ht.find("from Category");
		return list;
	}
}
